home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 November
/
PCWorld_2006-11_cd.bin
/
domacnost a kancelar
/
findgraph
/
fgraph.exe
/
{app}
/
TestVC
/
findgraph.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2002-11-20
|
13KB
|
607 lines
// Machine generated IDispatch wrapper class(es) created with ClassWizard
#include "stdafx.h"
#include "findgraph.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// IFindGraph properties
long IFindGraph::GetCurrentDotsId()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void IFindGraph::SetCurrentDotsId(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
CString IFindGraph::GetAxeXname()
{
CString result;
GetProperty(0x2, VT_BSTR, (void*)&result);
return result;
}
void IFindGraph::SetAxeXname(LPCTSTR propVal)
{
SetProperty(0x2, VT_BSTR, propVal);
}
CString IFindGraph::GetAxeXunit()
{
CString result;
GetProperty(0x3, VT_BSTR, (void*)&result);
return result;
}
void IFindGraph::SetAxeXunit(LPCTSTR propVal)
{
SetProperty(0x3, VT_BSTR, propVal);
}
double IFindGraph::GetAxeXstart()
{
double result;
GetProperty(0x4, VT_R8, (void*)&result);
return result;
}
void IFindGraph::SetAxeXstart(double propVal)
{
SetProperty(0x4, VT_R8, propVal);
}
double IFindGraph::GetAxeXscale()
{
double result;
GetProperty(0x5, VT_R8, (void*)&result);
return result;
}
void IFindGraph::SetAxeXscale(double propVal)
{
SetProperty(0x5, VT_R8, propVal);
}
CString IFindGraph::GetAxeYname()
{
CString result;
GetProperty(0x6, VT_BSTR, (void*)&result);
return result;
}
void IFindGraph::SetAxeYname(LPCTSTR propVal)
{
SetProperty(0x6, VT_BSTR, propVal);
}
CString IFindGraph::GetAxeYunit()
{
CString result;
GetProperty(0x7, VT_BSTR, (void*)&result);
return result;
}
void IFindGraph::SetAxeYunit(LPCTSTR propVal)
{
SetProperty(0x7, VT_BSTR, propVal);
}
double IFindGraph::GetAxeYstart()
{
double result;
GetProperty(0x8, VT_R8, (void*)&result);
return result;
}
void IFindGraph::SetAxeYstart(double propVal)
{
SetProperty(0x8, VT_R8, propVal);
}
double IFindGraph::GetAxeYscale()
{
double result;
GetProperty(0x9, VT_R8, (void*)&result);
return result;
}
void IFindGraph::SetAxeYscale(double propVal)
{
SetProperty(0x9, VT_R8, propVal);
}
CString IFindGraph::GetDocTitle()
{
CString result;
GetProperty(0xa, VT_BSTR, (void*)&result);
return result;
}
void IFindGraph::SetDocTitle(LPCTSTR propVal)
{
SetProperty(0xa, VT_BSTR, propVal);
}
CString IFindGraph::GetDocComment()
{
CString result;
GetProperty(0xb, VT_BSTR, (void*)&result);
return result;
}
void IFindGraph::SetDocComment(LPCTSTR propVal)
{
SetProperty(0xb, VT_BSTR, propVal);
}
long IFindGraph::GetDocWidth()
{
long result;
GetProperty(0xc, VT_I4, (void*)&result);
return result;
}
void IFindGraph::SetDocWidth(long propVal)
{
SetProperty(0xc, VT_I4, propVal);
}
long IFindGraph::GetDocHeight()
{
long result;
GetProperty(0xd, VT_I4, (void*)&result);
return result;
}
void IFindGraph::SetDocHeight(long propVal)
{
SetProperty(0xd, VT_I4, propVal);
}
BOOL IFindGraph::GetVisible()
{
BOOL result;
GetProperty(0xe, VT_BOOL, (void*)&result);
return result;
}
void IFindGraph::SetVisible(BOOL propVal)
{
SetProperty(0xe, VT_BOOL, propVal);
}
BOOL IFindGraph::GetDocPictIs()
{
BOOL result;
GetProperty(0xf, VT_BOOL, (void*)&result);
return result;
}
void IFindGraph::SetDocPictIs(BOOL propVal)
{
SetProperty(0xf, VT_BOOL, propVal);
}
BOOL IFindGraph::GetDocPictCentered()
{
BOOL result;
GetProperty(0x10, VT_BOOL, (void*)&result);
return result;
}
void IFindGraph::SetDocPictCentered(BOOL propVal)
{
SetProperty(0x10, VT_BOOL, propVal);
}
CString IFindGraph::GetDocPictFileName()
{
CString result;
GetProperty(0x11, VT_BSTR, (void*)&result);
return result;
}
void IFindGraph::SetDocPictFileName(LPCTSTR propVal)
{
SetProperty(0x11, VT_BSTR, propVal);
}
BOOL IFindGraph::GetDocPictStretch()
{
BOOL result;
GetProperty(0x12, VT_BOOL, (void*)&result);
return result;
}
void IFindGraph::SetDocPictStretch(BOOL propVal)
{
SetProperty(0x12, VT_BOOL, propVal);
}
long IFindGraph::GetArrayId()
{
long result;
GetProperty(0x13, VT_I4, (void*)&result);
return result;
}
void IFindGraph::SetArrayId(long propVal)
{
SetProperty(0x13, VT_I4, propVal);
}
VARIANT IFindGraph::GetArrayVar()
{
VARIANT result;
GetProperty(0x14, VT_VARIANT, (void*)&result);
return result;
}
void IFindGraph::SetArrayVar(const VARIANT& propVal)
{
SetProperty(0x14, VT_VARIANT, &propVal);
}
/////////////////////////////////////////////////////////////////////////////
// IFindGraph operations
long IFindGraph::DotsNew(short nColor, short nShape, short nWidth, double fAspect, LPCTSTR lpctstrName)
{
long result;
static BYTE parms[] =
VTS_I2 VTS_I2 VTS_I2 VTS_R8 VTS_BSTR;
InvokeHelper(0x15, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nColor, nShape, nWidth, fAspect, lpctstrName);
return result;
}
void IFindGraph::DocUpdate()
{
InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void IFindGraph::AppInit(short nVisible)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nVisible);
}
SCODE IFindGraph::DotsAddPoint(long dwId, double fX, double fY, double fZ)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_R8 VTS_R8 VTS_R8;
InvokeHelper(0x18, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, fX, fY, fZ);
return result;
}
SCODE IFindGraph::DotsColorNumGet(long dwId, short* pnColorNum)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_PI2;
InvokeHelper(0x19, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, pnColorNum);
return result;
}
SCODE IFindGraph::DotsColorNumSet(long dwId, short nColorNum)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_I2;
InvokeHelper(0x1a, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, nColorNum);
return result;
}
SCODE IFindGraph::DotsShapeGet(long dwId, short* pnShape)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_PI2;
InvokeHelper(0x1b, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, pnShape);
return result;
}
SCODE IFindGraph::DotsShapeSet(long dwId, short nShape)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_I2;
InvokeHelper(0x1c, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, nShape);
return result;
}
SCODE IFindGraph::DotsWidthGet(long dwId, short* pnWidth)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_PI2;
InvokeHelper(0x1d, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, pnWidth);
return result;
}
SCODE IFindGraph::DotsWidthSet(long dwId, short nWidth)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_I2;
InvokeHelper(0x1e, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, nWidth);
return result;
}
SCODE IFindGraph::DotsAspectGet(long dwId, double* pfAspect)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_PR8;
InvokeHelper(0x1f, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, pfAspect);
return result;
}
SCODE IFindGraph::DotsAspectSet(long dwId, double fAspect)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_R8;
InvokeHelper(0x20, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, fAspect);
return result;
}
SCODE IFindGraph::DotsNameGet(long dwId, BSTR* lptstrName)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_PBSTR;
InvokeHelper(0x21, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, lptstrName);
return result;
}
SCODE IFindGraph::DotsNameSet(long dwId, LPCTSTR lpctstrName)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_BSTR;
InvokeHelper(0x22, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, lpctstrName);
return result;
}
SCODE IFindGraph::DotsShowLine(long dwId, short nShow)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_I2;
InvokeHelper(0x23, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, nShow);
return result;
}
long IFindGraph::SelectedGetStart(short nParam)
{
long result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x24, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nParam);
return result;
}
long IFindGraph::SelectedGetStop(short nParam)
{
long result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x25, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nParam);
return result;
}
SCODE IFindGraph::SelectedGetDot(double* pfX, double* pfY, double* pfZ)
{
SCODE result;
static BYTE parms[] =
VTS_PR8 VTS_PR8 VTS_PR8;
InvokeHelper(0x26, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
pfX, pfY, pfZ);
return result;
}
long IFindGraph::DotsColor(short nColorNum)
{
long result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x27, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nColorNum);
return result;
}
SCODE IFindGraph::DotsUpdate(long dwId)
{
SCODE result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x28, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId);
return result;
}
SCODE IFindGraph::DotsAddPoints(long dwId, short nParam, const VARIANT& varray)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_I2 VTS_VARIANT;
InvokeHelper(0x29, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, nParam, &varray);
return result;
}
SCODE IFindGraph::SelectedGetDots(short nParam, VARIANT* pvar)
{
SCODE result;
static BYTE parms[] =
VTS_I2 VTS_PVARIANT;
InvokeHelper(0x2a, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
nParam, pvar);
return result;
}
double IFindGraph::SelectedGetX(long num)
{
double result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x2b, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
num);
return result;
}
double IFindGraph::SelectedGetY(long num)
{
double result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x2c, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
num);
return result;
}
double IFindGraph::SelectedGetZ(long num)
{
double result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x2d, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
num);
return result;
}
void IFindGraph::AppQuit()
{
InvokeHelper(0x2e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
SCODE IFindGraph::OpenDocumentFile(LPCTSTR lpctstr)
{
SCODE result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x2f, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
lpctstr);
return result;
}
SCODE IFindGraph::DotsRemove(long dwId)
{
SCODE result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x30, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId);
return result;
}
long IFindGraph::ClipNewRect(short nColor, double fXstart, double fYstart, double fXend, double fYend)
{
long result;
static BYTE parms[] =
VTS_I2 VTS_R8 VTS_R8 VTS_R8 VTS_R8;
InvokeHelper(0x31, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nColor, fXstart, fYstart, fXend, fYend);
return result;
}
SCODE IFindGraph::ClipRemove(long dwId)
{
SCODE result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x32, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId);
return result;
}
long IFindGraph::ClipNewRgn(short nColor, const VARIANT& var)
{
long result;
static BYTE parms[] =
VTS_I2 VTS_VARIANT;
InvokeHelper(0x33, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nColor, &var);
return result;
}
SCODE IFindGraph::ClipNameSet(long dwId, LPCTSTR lpctstrName)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_BSTR;
InvokeHelper(0x34, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, lpctstrName);
return result;
}
SCODE IFindGraph::ClipSelect(long dwId, short nSelect)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_I2;
InvokeHelper(0x35, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, nSelect);
return result;
}
long IFindGraph::DotsFromPict(short nColor, short nWidth, LPCTSTR lpctstrName)
{
long result;
static BYTE parms[] =
VTS_I2 VTS_I2 VTS_BSTR;
InvokeHelper(0x36, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nColor, nWidth, lpctstrName);
return result;
}
long IFindGraph::ClipNewEmptyRgn(short nColor)
{
long result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x37, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nColor);
return result;
}
SCODE IFindGraph::ClipNewRgnDot(long dwId, double fX, double fY)
{
SCODE result;
static BYTE parms[] =
VTS_I4 VTS_R8 VTS_R8;
InvokeHelper(0x38, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
dwId, fX, fY);
return result;
}